<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Login</h2>
    <p>
        <% if (!this.User.Identity.IsAuthenticated) { %>
            <% Html.BeginForm(); %>
            UserName : <%= Html.TextBox("UserName") %> <br />
            PassWord : <%= Html.Password("Password") %><br />
            <input type="submit" value="Submit" />
            <% Html.EndForm(); %>
        <% } else { %>
            <%= this.User.Identity.Name %>
        <% } %>
    </p>
</asp:Content>
